//
//  ImageBtn.h
//  智能备考学习
//
//  Created by 盛超 on 2018/1/19.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    DicImgInLeft,
    DicImgInRight
} ImgPosition;


/*包含图片的按钮*/
@interface DicImageBtn : UIButton

- (id)initWithFrame:(CGRect)frame title:(NSString*)title image:(UIImage *)image ImagePosition:(ImgPosition)position;
- (void)resetTitle:(NSString*)title Image:(UIImage*)image ImagePosition:(ImgPosition)position;

//停止播放动画
- (void)stopPlayAnimation;

@property (nonatomic,strong) UIImage *image;
@property (nonatomic,strong) NSString *title;
@property (nonatomic,strong) NSArray *animationImages;
@property (nonatomic,assign) BOOL becomeHightlightly;

@end
